﻿#if WINDOWS_PHONE
using System;
using System.Threading.Tasks;

using Microsoft.Phone.Tasks;

namespace Outcoder.LauncherModel.Launchers
{
	public class ShareLinkLauncher : LauncherBase, IShareLinkLauncher
	{
		readonly ShareLinkTask task = new ShareLinkTask();

		public Uri LinkUri
		{
			get
			{
				return task.LinkUri;
			}
			set
			{
				task.LinkUri = value;
			}
		}

		public string Description
		{
			get
			{
				return task.Message;
			}
			set
			{
				task.Message = value;
			}
		}

		public string Title
		{
			get
			{
				return task.Title;
			}
			set
			{
				task.Title = value;
			}
		}

		public override async Task<bool> ShowAsync()
		{
			task.Show();

			return true;
		}
	}
}
#endif